package com.atguigu.yygh;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author ybl
 * @version 1.9
 * @date 2021/5/12 22:05
 */
@SpringBootApplication
@ComponentScan(basePackages = "com.atguigu")
@EnableDiscoveryClient // 服务注册,用于远程调用接口
@EnableFeignClients(basePackages = "com.atguigu") // 基本的扫描包规则 服务调用
public class ServiceHospApplication {
  public static void main(String[] args) {
    SpringApplication.run(ServiceHospApplication.class,args);
  }
}
